package com.ruan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruan.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Department> selectAll();

    Department selectDepart(Long id);

    void stopDepart(Long id);

    void startDepart(Long id);

    Department selectByName(String departName);

}
